<el-dialog title="编辑修改" v-model="editFormDialog" @open="editOpen(editForm.type)">
<!-- <el-form :model="form"> -->
<el-form ref="editForm" :rules="rules" :model="editForm" v-model="editForm" :label-width="dialogLabelWidth">
  <el-row>
    <el-col :span="12">
      <el-form-item label="单位名" prop="name">
        <el-input v-model="editForm.name"  auto-complete="off"></el-input>
      </el-form-item>
    </el-col>
    <el-col :span="12">
      <el-form-item label="类型" prop="type">
        <el-select  v-model="editForm.type"   >
          <el-option  v-for='(item,key) in typeList' :label="item" :value="key"></el-option>
        </el-select>
      </el-form-item>
    </el-col>
  </el-row>
   
   <el-row>
    <el-col :span="12">
      <el-form-item label="事业/财富区"  prop="division_id" >
        <el-select  v-model="editForm.division_id" placeholder="请选择事业/财富区">
          <el-option v-for='item in topO' :label="item.name" :value="item.id"></el-option>
        </el-select>
      
      </el-form-item>
    </el-col>
    
    <!-- <el-col :span="12">
      <el-form-item label="片区"  prop="zone_id" >
        <el-select  v-model="editForm.zone_id">
          <el-option v-for='(item,key) in zoneList' :label="item" :value="key"></el-option>
        </el-select>
      </el-form-item>
    </el-col> -->
   </el-row>
    <el-row>
  <!--     <el-col :span="12">
        <el-form-item label="拓展一"  prop="expand1" >
           <el-input v-model="editForm.expand1"  auto-complete="off"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="拓展二"  prop="expand2" >
           <el-input v-model="editForm.expand2"  auto-complete="off"></el-input>
        </el-form-item>
      </el-col>
    </el-row>-->
    <el-row>
      <el-col :span="12">
        <el-form-item label="部门经理"  prop="contact" >
          <el-select v-model='editForm.user_id'>
            <el-option v-for="user in computedusers" :label="user.realname" :value="user.user_id"></el-option>
          </el-select>
        </el-form-item>

      </el-col>
<!--       <el-col :span="12">
        <el-form-item label="是否启用" prop="status">
         <el-radio-group v-model="editForm.status">
           <el-radio :label="1">启用</el-radio>
           <el-radio :label="0">禁用</el-radio>
         </el-radio-group>
       </el-form-item>
      </el-col> -->
    </el-row>
    <!-- <el-row>
      <el-col :span="12">
        <el-form-item label="财务编号"  prop="f_num" >
          <el-input  auto-complete="off" v-model="editForm.f_num"></el-input>
        </el-form-item>
      </el-col>
      <el-col :span="12">
        <el-form-item label="是否公示"  prop="public">
          <el-radio-group v-model="editForm.public">
           <el-radio   label="1">是</el-radio>
           <el-radio   label="0">否</el-radio>
          </el-radio-group>
        </el-form-item>
      </el-col>
    </el-row> -->
    <el-row>
      <!-- <el-col :span="12">
        <input type="hidden" name="img" v-model="editForm.img">
        <el-upload action="{:U('Upload/index')}" :on-success="uploadImg_E" :data="pathInfo" :thumbnail-mode="true" :default-file-list="fileList" type="drag" :multiple="false" style="margin-left:25%;;">
          <i class="el-icon-upload" style="margin:10px 0 16px;"></i>
          <input type="hidden" name="img" v-model="editForm.id">
          <div class="el-dragger__text">将<em>形象照片</em>拖到此处，或<em>点击上传</em></div>
          <div class="el-upload__tip" slot="tip" style="margin-right:115px;">只能上传jpg/png/gif文件，且不超过2M</div>
        </el-upload>

      </el-col> 
      <el-col :span="24">
        <el-form-item label="地址"  prop="address">
          <el-input  auto-complete="off" v-model="editForm.address"></el-input>
        </el-form-item>-->
        
        
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="24">
        <el-form-item label="备注"  prop="remark">
          <el-input  auto-complete="off" v-model="editForm.remark"></el-input>
        </el-form-item>
      </el-col>
    </el-row>
  </el-form>
  <div slot="footer" class="dialog-footer">
    <include file="Common:_edit" />
  </div>
</el-dialog>